<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=divice-width,initial-scale=1.0">
	<title>模板字符串</title>
</head>
<body>
<script type="text/javascript">
	//字符串会牵涉到动态部分
	var person = {
		'name' : '小明',
		'address' : '廊坊',
		'link' : 'http://www.baidu.com',
	};
	let str = '我是' + person.name + '，我在' + person.address + '，网址' + person.link;
	console.log(str);
	//ES6语法
	let str1 = `我是${person.name}我在${person.address}网址${person.link}`;
	console.log(str1);
</script>
</body>
</html>